import request from '@/utils/request'

// @Tags api
// @Summary 获取用户列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body modelInterface.PageInfo true "用户登录"
// @Success 200 {string} json "{"code":0,"data":{},"msg":"获取成功"}"
// @Router /api/order/list [post]
export const getOrderList = (data) => {
  return request({
    url: '/api/order/list',
    method: 'Post',
    data
  })
}
export const getOrderDetail = (orderId) => {
  return request({
    url: `/api/order/detail/${orderId}`,
    method: 'Get'
  })
}
export const addextendFiles = (data) => {
  return request({
    url: '/api/order/extendFiles/add',
    method: 'Post',
    data
  })
}
export const savesendColor = (data) => {
  return request({
    url: '/api/order/sendColor/save',
    method: 'Post',
    data
  })
}
export const addcontacts = (data) => {
  return request({
    url: '/api/order/contacts/add',
    method: 'Post',
    data
  })
}
export const updatecontacts = (data) => {
  return request({
    url: '/api/order/contacts/update',
    method: 'Post',
    data
  })
}
export const setdelcontact = (Id) => {
  return request({
    url: `/api/order/contacts/delete/${Id}`,
    method: 'Get'
  })
}
export const savereceiveImage = (data) => {
  return request({
    url: '/api/order/receiveImage/save',
    method: 'Post',
    data
  })
}
export const savemailImage = (data) => {
  return request({
    url: '/api/order/mailImage/save',
    method: 'Post',
    data
  })
}
export const cancelorder = (data) => {
  return request({
    url: '/api/order/cancel',
    method: 'Post',
    data
  })
}
export const auditorder = (data) => {
  return request({
    url: '/api/order/audit',
    method: 'Post',
    data
  })
}
export const sendorder = (data) => {
  return request({
    url: '/api/order/send',
    method: 'Post',
    data
  })
}
export const setreceive = (Id) => {
  return request({
    url: `/api/order/receive/${Id}`,
    method: 'Get'
  })
}
export const setreturn = (Id) => {
  return request({
    url: `/api/order/return/${Id}`,
    method: 'Get'
  })
}
export const setorderremark = (data) => {
  return request({
    url: '/api/order/remark/save',
    method: 'Post',
    data
  })
}
export const getbills = (Id) => {
  return request({
    url: `/api/order/bills/${Id}`,
    method: 'Get'
  })
}
export const getlogs = (Id) => {
  return request({
    url: `/api/order/log/${Id}`,
    method: 'Get'
  })
}
export const addlogs = (data) => {
  return request({
    url: '/api/order/log/add',
    method: 'Post',
    data
  })
}
export const setcutPay = (Id) => {
  return request({
    url: `/api/order/bills/cutPay/${Id}`,
    method: 'Get'
  })
}
export const setofflinePay = (Id) => {
  return request({
    url: `/api/order/bills/offlinePay/${Id}`,
    method: 'Get'
  })
}
export const setclose = (Id) => {
  return request({
    url: `/api/order/bills/close/${Id}`,
    method: 'Get'
  })
}
export const setrefund = (Id) => {
  return request({
    url: `/api/order/bills/refund/${Id}`,
    method: 'Get'
  })
}
export const getofflines = (Id) => {
  return request({
    url: `/api/order/bills/offline/${Id}`,
    method: 'Get'
  })
}
export const addoffline = (data) => {
  return request({
    url: '/api/order/bills/offline/add',
    method: 'Post',
    data
  })
}
export const getriskQas = (Id) => {
  return request({
    url: `/api/order/riskQa/${Id}`,
    method: 'Get'
  })
}
export const saveriskQas = (data) => {
  return request({
    url: '/api/order/riskQa/save',
    method: 'Post',
    data
  })
}
export const getflexible = (Id) => {
  return request({
    url: `/api/order/flexible/${Id}`,
    method: 'Get'
  })
}
export const setflexible = (Id) => {
  return request({
    url: `/api/order/flexible/set/${Id}`,
    method: 'Get'
  })
}
export const savecomplete = (data) => {
  return request({
    url: '/api/order/complete',
    method: 'Post',
    data
  })
}
export const getcompleteorderinfo = (Id) => {
  return request({
    url: `/api/order/complete/info/${Id}`,
    method: 'Get'
  })
}
export const assignorder = (data) => {
  return request({
    url: '/api/order/assign',
    method: 'Post',
    data
  })
}
export const getorderstat = () => {
  return request({
    url: '/api/order/stat',
    method: 'Get',
  })
}
export const getAuditList = (data) => {
  return request({
    url: '/api/order/audit/list',
    method: 'Post',
    data
  })
}
export const getsignurl = (Id) => {
  return request({
    url: `/api/order/contract/sign/url/${Id}`,
    method: 'Get'
  })
}
export const getriskReport = (Id) => {
  return request({
    url: `/api/order/riskReport/${Id}`,
    method: 'Get'
  })
}
export const setimei = (data) => {
  return request({
    url: '/api/order/imei/edit',
    method: 'Post',
    data
  })
}
export const setmailNo = (data) => {
  return request({
    url: '/api/order/mailNo/edit',
    method: 'Post',
    data
  })
}